﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Company.Master" AutoEventWireup="true"
    CodeBehind="CompanyInquiryCart.aspx.cs" Inherits="E_Shop.CompanyInquiryCart" %>

<%@ Register Assembly="ESHOP.Controls" Namespace="EBAYVN.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        #tabs
        {
            position: absolute;
            width: 64%;
            margin-left: auto;
            margin-right: auto;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
        });
        $(document).ready(function () {
            if ($("#detailsmail") != null) {
                $("#detailsmail").dialog({
                    autoOpen: false,
                    modal: true,
                    minHeight: 100,
                    height: 'auto',
                    width: 'auto',
                    draggable: true,
                    resizable: false,
                    open: function () {
                        $(this).parent().appendTo($("form:first"));
                    }
                });
            }
            if ($("#replyemail") != null) {
                $("#replyemail").dialog({
                    autoOpen: false,
                    modal: true,
                    minHeight: 100,
                    height: 'auto',
                    width: 'auto',
                    draggable: true,
                    resizable: false,
                    open: function () {
                        $(this).parent().appendTo($("form:first"));
                    }
                });
            }
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   
   <div id="replyemail" style="display: none">
        <asp:UpdatePanel ID="Upreplyemail" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table style="border: 1px solid #0883cc">
                    <tr style="border-bottom: 1px  solid #0883cc; margin-top: 10px">
                        <td style="border-bottom-style: solid; border-bottom-width: thin; border-bottom-color: #0883cc">
                            <asp:Label ID="lbnguoigui" runat="server" Text="Recevier :" Font-Bold="true"></asp:Label>
                            <asp:Label ID="lbreceiver" runat="server" Text=""></asp:Label>
                        </td>
                        <td style="border-bottom-style: solid; border-bottom-width: thin; border-bottom-color: #0883cc">
                            <asp:Label ID="Label1" runat="server" Text="Datetime: " Font-Bold="true"></asp:Label>
                            <asp:Label ID="lbngaygui" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr style="margin-top: 10px">
                        <td colspan="2" style="border-bottom-style: solid; border-bottom-width: thin; border-bottom-color: #0883cc " >
                            <asp:Label ID="Label2" runat="server" Text="Subject : " Font-Bold="true" Width ="150px"></asp:Label>
                            <asp:TextBox ID="txtSubject" runat="server" Text="" Width="350px" ></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="margin-top: 10px">
                        <td colspan="2" style="border-bottom-style: solid; border-bottom-width: thin; border-bottom-color: #0883cc">
                            <asp:Label ID="Label3" runat="server" Text="Content Message :" Font-Bold="true"></asp:Label>
                    </tr>
                    <tr style="margin-top: 10px">
                        <td colspan="2" style="border-bottom-style: solid; border-bottom-width: thin; border-bottom-color: #0883cc">
                            <asp:TextBox ID="txtcontent" runat="server" TextMode="MultiLine" Width="500px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="margin-top: 10px">
                        <td colspan="2" style="text-align: center">
                            <asp:Button ID="btnsend" runat="server" Text="Send" OnClick="btnsend_Click" />
                        </td>
                    </tr>
                </table>
                <br />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>


    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">Require Selling</a></li>
            <li><a href="#tabs-2">Require Buying</a></li>
        </ul>
        <form id="frmManagerBuyLead" action="CompanyInquiryCart.aspx">
        <div id="tabs-1">
            <div style="width: 100%" class="stuff3">
                <div class="blue-left">
                    Inrequiry Card</div>
                <div class="blue-right">
                    <a class="close-blue">
                        <img src="Images/Shared/icon_close_blue.gif" alt="" /></a>
                </div>
                <br />
                <asp:UpdatePanel ID="UpGrid" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <cc1:Grid runat="server" UseCustomPager="false" PageSize="10" ID="gvListRequire"
                            CssClass="grid" OnRowCommand="gvListRequire_RowCommand" OnRowDataBound="gvListRequire_RowDataBound"
                            AllowSorting="True" OnPageIndexChanging="gvListRequire_PageIndexChanging">
                            <PagerSettings FirstPageText="sản phẩm" PageButtonCount="2" />
                            <Columns>
                                <asp:TemplateField HeaderStyle-CssClass="checkbox" HeaderText="#" HeaderStyle-Width="5%">
                                    <ItemTemplate>
                                        <%# Container.DataItemIndex + 1 %>
                                    </ItemTemplate>
                                    <ItemStyle Width="5%" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="TYPE" HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <%# Eval("LOAITHEYEUCAU.TENLOAI")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Region" HeaderStyle-Width="15%">
                                    <ItemTemplate>
                                        <%# Eval("SELL.QUOCGIA.TENQUOCGIA")%>
                                    </ItemTemplate>
                                    <ItemStyle Font-Bold="true" ForeColor="Black" HorizontalAlign="Right" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Company" HeaderStyle-Width="30%">
                                    <ItemTemplate>
                                        <%# Eval("SELL.CONGTY.TENCONGTY")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Description">
                                    <ItemTemplate>
                                        <%# Eval("SELL.DESCRIPTION")%>
                                    </ItemTemplate>
                                    <ItemStyle ForeColor="Black" HorizontalAlign="Left" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Options" HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="linkDelete" runat="server" CommandArgument='<%# Eval("ID") %>'
                                            CommandName="deleterequire" Text="delete" CssClass="link" />
                                        <asp:LinkButton ID="linkreply" runat="server" CommandArgument='<%# Eval("ID") %>'
                                            CommandName="Contact" CssClass="link" Text="Contact" OnClientClick="openDialogAndBlock('Reply email', 600, 'replyemail')"/>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </cc1:Grid>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
        <div id="tabs-2">
            <div style="width: 100%" class="stuff3">
                <div class="blue-left">
                    Inrequiry Card Buying</div>
                <div class="blue-right">
                    <a class="close-blue">
                        <img src="Images/Shared/icon_close_blue.gif" alt="" /></a>
                </div>
                <br />
                <asp:UpdatePanel ID="Updatebuying" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <cc1:Grid runat="server" UseCustomPager="false" PageSize="10" ID="gvListRequirebuying"
                            CssClass="grid" OnRowCommand="gvListRequirebuying_RowCommand" OnRowDataBound="gvListRequirebuying_RowDataBound"
                            AllowSorting="True" OnPageIndexChanging="gvListRequirebuying_PageIndexChanging">
                            <PagerSettings FirstPageText="sản phẩm" PageButtonCount="2" />
                            <Columns>
                                <asp:TemplateField HeaderStyle-CssClass="checkbox" HeaderText="#" HeaderStyle-Width="5%">
                                    <ItemTemplate>
                                        <%# Container.DataItemIndex + 1 %>
                                    </ItemTemplate>
                                    <ItemStyle Width="5%" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="TYPE" HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <%# Eval("LOAITHEYEUCAU.TENLOAI")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Region" HeaderStyle-Width="15%">
                                    <ItemTemplate>
                                        <%# Eval("BUY.CONGTY.QUOCGIA.TENQUOCGIA")%>
                                    </ItemTemplate>
                                    <ItemStyle Font-Bold="true" ForeColor="Black" HorizontalAlign="Right" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Company" HeaderStyle-Width="30%">
                                    <ItemTemplate>
                                        <%# Eval("BUY.CONGTY.TENCONGTY")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Description">
                                    <ItemTemplate>
                                         <%# Eval("BUY.MOTA")%>
                                    </ItemTemplate>
                                    <ItemStyle ForeColor="Black" HorizontalAlign="Left" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Options" HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="linkDelete" runat="server" CommandArgument='<%# Eval("ID") %>'
                                            CommandName="deleterequire" Text="delete" CssClass="link" />
                                        <asp:LinkButton ID="linkreply" runat="server" CommandArgument='<%# Eval("ID") %>'
                                            CommandName="Contact" CssClass="link" Text="Contact" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </cc1:Grid>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
        </form>
    </div>
</asp:Content>
